/*
 * @Description: string
 * @Author: rendc
 * @Date: 2025-10-29 10:19:26
 * @LastEditors: rendc
 * @LastEditTime: 2025-10-29 11:27:46
 */
var str = "Ahello";
console.log('🤡 CC - str:', str);
console.log('🤡 CC - str.charAt(0):', str.charAt(0));
console.log('🤡 CC - str:', str);
console.log('🤡 CC - str.charCodeAt(0):', str.charCodeAt(0));
console.log('🤡 CC - str:', str);
console.log('🤡 CC - str11.charCodeAt():', str.charCodeAt());
console.log('🤡 CC - str11:', str);

var num = new Number();
console.log('🤡 CC - num:', num);


var str1 = 'hello';
var newStr = str1.concat(' world');
console.log('🤡 CC - str1:', str1);
console.log('🤡 CC - newStr:', newStr);


console.log(`🤡 CC - str1.endsWith("llo1"):`, str1.endsWith("llo1"));

// str1.includes("llo1")
console.log(`🤡 CC - str1.includes("llo1"):`, str1.includes("llo1"));
console.log(`🤡 CC - str1.includes("llo"):`, str1.includes("llo"));

var str1 = 'hello';
var reg = /(llo)/
var reg = /llo/
console.log('🤡 CC - reg.test(str1):', reg.test(str1));

// 正则表达式
/t(e)(st(\d?))/
// t 
// (e) 分组(e)
// (st(\d?))
// st
// \d 数字
// \d ? 数字非贪婪模式
// 修饰符
// g  // 全局匹配